import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from './components/ElementLogin.vue';
import Main from './components/ElementView.vue';
import Feedback from './components/ElementFeedback.vue';
import Camera from './components/CameraShow.vue';
import Map from './components/GpsShow.vue';
import Person from './components/PersonShow.vue';
import Guide from './components/GuideShow.vue';
import Port from './components/PortShow.vue';


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/main',
    component: Main,
    meta: { requiresAuth: true }
  },
  {
    path: '/feedback',
    component: Feedback
  },
  {
    path: '/camera',
    component: Camera
  },
  {
    path: '/map',
    component: Map
  },
  {
    path: '/person',
    component: Person
  },
  {
    path: '/guide',
    component: Guide
  },
  {
    path: '/port',
    component: Port
  },
];

const router = new VueRouter({
  routes
})

export default router
